import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
//1.导入 Scanner 包
public class ScannerDemo01 {
    public static void main(String[] args) throws UnsupportedEncodingException {

        System.setProperty("file.encoding","UTF-8");
        PrintStream out = new PrintStream(System.out,true,"UTF-8");
        System.setOut(out);

        //2.创建对象
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入整数");
        //3.接收数据
        int number1 = sc.nextInt();
        int number2 = sc.nextInt();
        System.out.println("打印结果");
        System.out.println(number1 + number2);
    }
}
